package cn.com.chengq.extension;

import java.applet.Applet;
import java.awt.*;

/**
 * 这里是可下载扩展的例子
 */
public class AreaApplet extends Applet {
    Rectangle r;

    @Override
    public void init() {
        int width = 10;
        int height = 5;

        r = new Rectangle(10, 5);
    }

    @Override
    public void paint(Graphics g) {
        g.drawString("The rectangle's area is " + RectangleArea.area(r), 10, 10);
    }

}
